<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin:0;padding:0}
        /* 子元素不设置width,它会继承父元素的width  -->只发生在块元素之间 */
        div{
            background-color: #1ABEBF;
            height: 100px;
            background-image: url('images/logo.png');
            /* background-repeat:no-repeat |repeat-x|repeat-y */
            background-repeat: no-repeat;
            background-position-x: center;
            background-position-y: center;
        }
    </style>
</head>
<body>
    <div>
        
    </div>
</body>
</html>